﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using Models;
using BLL;


namespace Dryricenet
{
    public partial class home_Center : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           
            LB();
            Recommend();
            Discount();
        }
        //轮播
        public void LB() {
            rpLunBo.DataSource = RotationaBLL.SelectTbLunBo();
            rpLunBo.DataBind();
        }
        private void Discount()
        {
            DataList2.DataSource = foodBLL.qtZKBLL();
            DataList2.DataBind();
        }

        private void Recommend()
        {
            DataList1.DataSource = foodBLL.qtWntjBLL();
            DataList1.DataBind();
        }
    }
}